<?php


namespace app\api\validate;


class CheckGrActivity extends BaseValidate
{
    protected $rule = [
        'fileList' => 'array|max:9',
        'title' => 'require|max:50',
        'start_time' => 'require',
        'end_time' => 'require',
        'num_status' => 'in:0,1,2',
        'zy_content' => 'max:255',
    ];


    protected $message = [
        'fileList' => '请上传活动图片',
        'title' => '请输入标题且长度不大于50',
        'start_time' => '请选择活动开始时间',
        'end_time' => '请选择活动结束时间',
        'num_status' => '请选择参加人数',
        'zy_content' => '注意事项最多255字符'
    ];
}